import java.lang.reflect.Method;


public class Test {

	public static void main(String[] args) {
		try {
			Object b = new B();b.getClass().getSuperclass();
			Method method = b.getClass().getDeclaredMethod("b", new Class[]{});
			method.setAccessible(true);
		} catch (Exception e) {
			e.printStackTrace();
		} 
	}
}
